home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Publishing / ImagePortfolio / Source / PaletteCell.h < prev    next >
Text File  |  1994-04-01  |  2KB  |  54 lines

  1. // -------------------------------------------------------------------------------------
  2. // PaletteCell.h
  3. // -------------------------------------------------------------------------------------
  4.  
  5. #import <libc.h>
  6. #import <mach/cthreads.h>
  7. #import <sys/time.h>
  8. #import <objc/objc.h>
  9. #import <objc/zone.h>
  10. #import <objc/error.h>
  11. #import <appkit/nextstd.h>
  12. #import <appkit/graphics.h>
  13. #import <appkit/Application.h>
  14. #import <appkit/Font.h>
  15. #import <appkit/Window.h>
  16. #import <appkit/color.h>
  17. #import <appkit/ActionCell.h>
  18.  
  19. // -------------------------------------------------------------------------------------
  20.  
  21. @interface PaletteCell : ActionCell
  22. {
  23.     id                    imageId;            // main image id
  24.     id                    smallImage;            // abbreviated bitmap id
  25.     NXSize                imageBounds;        // icon image bounding size
  26.     char                *imagePath;            // path to image
  27.     id                    titleCell;            // title cell
  28.     id                    delegate;            // delegate handler
  29.     mutex_t                imageMutex;            // image loading mutex
  30. }
  31.   
  32. // -------------------------------------------------------------------------------------
  33. BOOL _validExtension(char *fileName);
  34. + addImageClass:classId, ...;
  35. - setCellSize:(const NXSize*)cellSize;
  36. - loadImageFile;
  37. - setImageFile:(const char *)filePath;
  38. - image;
  39. - imageRepresentation:(int)imageNum;
  40. - (const char*)imagePath;
  41. - (const char*)cellTitle;
  42. - calcCellSize:(NXSize *)theSize inRect:(const NXRect *)aRect;
  43. - drawInside:(const NXRect *)cellFrame inView:controlView;
  44. - (BOOL)isSelected;
  45.  
  46. @end
  47.  
  48. // -------------------------------------------------------------------------------------
  49. // PaletteCell delegate methods
  50. @interface PaletteCell(delegate)
  51. - cellBecameSelected:sender;
  52. - cellResignedSelected:sender;
  53. @end
  54.